package com.ruoyi.business.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 券码信息对象 biz_coupon
 * 
 * @author ruoyi
 * @date 2024-05-19
 */
@Data
public class BizCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 券ID */
    @Excel(name = "券ID")
    private Long couponId;

    /** 商户id */

    private Long tenantId;
    @Excel(name = "商户名称")
    private String tenantName;

    /** 券名称 */
    @Excel(name = "券名称")
    private String title;

    /** 券logo */
    @Excel(name = "券logo")
    private String logo;

    /** 可用时段 */
    @Excel(name = "可用时段")
    private String timeInteral;

    /** 有效期类型 0 :自领取日多少天内有效,1:开始&结束 */
    @Excel(name = "有效期类型 0 :自领取日多少天内有效,1:开始&结束")
    private Long periodType;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime startTime;

    /** 结束时间 */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime activityStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime activityEnd;
    /** 自领取日多少天内有效 */
    @Excel(name = "自领取日多少天内有效")
    private Long days;

    /** 券总量 */
    @Excel(name = "券总量")
    private Long stock;
    private Long points;
    private String stockType;
    /** 领取量 */
    @Excel(name = "领取量")
    private Long draw;

    /** 使用量 */
    @Excel(name = "使用量")
    private Long used;

    /** 核销方式:0:自助核销,1:其他 */
    @Excel(name = "核销方式:0:自助核销,1:其他")
    private Long mode;

    /** 客服地址 */
    private String wechat;

    /** 使用说明 */
    @Excel(name = "使用说明")
    private String description;

    /** 启用状态（0:启用 1:禁用) */
    @Excel(name = "启用状态", readConverterExp = "启用状态（0:启用 1:禁用)")
    private String status;

    private String stores;
    /**
     *类型 0:满减,1:打折券,2:兑换券
     */
    private Integer couponType;
    /**
     * 满多少
     */
    private String amount;
    /**
     * 减多少
     */
    private String reduce;
    /**
     * 打多少折
     */
    private String discount;
    /**
     * 兑换物
     */
    private String exchangeItems;

    private String originalPrice;
    private Integer audit;
}
